package com.liuqi.openai.data.message;

/**
 * openai 对话消息的抽象类
 *
 * @author liuqi
 * @date 2025/7/19
 **/
public abstract class ChatMessage {

    protected final String text;

    protected final ChatMessageType type;

    ChatMessage(String text, ChatMessageType type) {
        this.text = text;
        this.type = type;
    }

    public String text() {
        return text;
    }

    public ChatMessageType type() {
        return type;
    }

}
